package com.itetchologyandenglish.home.service.Impl;

import com.itetchologyandenglish.home.enetity.CompanyType;
import com.itetchologyandenglish.home.mapper.CompanyTypeMapper;
import com.itetchologyandenglish.home.service.CompanyTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CompanyTypeServiceImpl implements CompanyTypeService {
    @Resource
    CompanyTypeMapper companyTypeMapper;
    @Override
    public List<CompanyType> getCompanyType() {
        return companyTypeMapper.getCompanyType();
    }

    @Override
    public CompanyType getCompanyById(Integer companyTypeId) {
        return companyTypeMapper.getCompanyById(companyTypeId);
    }
}
